import { Outlet, Link } from "react-router-dom";

export default function My() {
  return (
    <div>
      <p>My组件</p>
      <Link to="/My">My1</Link>------<Link to="/My/My2">My2</Link>
      <h2>二级路由出口</h2>
      <Outlet />
    </div>
  );
}
